package com.uplooking.service;

import java.util.List;
import java.util.Map;

import com.uplooking.pojo.AddrVO;
import com.uplooking.pojo.GoodVO;
import com.uplooking.pojo.OrderVO;
import com.uplooking.util.PagerUtils;

public interface CustService {
	
	//商品列表 [首页]
	PagerUtils getGoodList(String name,String type,int index,int size,int step);
	
	//购物车商品总数
	long countShopCar(String username);
	
	//添加商品到购物车
	Map<String,Object> addShopCar(String username,String gno);
	
	//从购物车中移除商品
	Map<String,Object> delShopCar(String username,String gno);
	
	//购物车列表
	List<GoodVO> listShopCar(String username);
	
	//新建地址信息
	Map<String,Object> addAddr(String username,AddrVO addrVO);
	
	//删除地址信息
	Map<String,Object> delAddr(String username,String id);
	
	//设置默认地址信息
	Map<String,Object> defAddr(String username,String id);
	
	//地址信息列表
	List<AddrVO> listAddr(String username);
	
	//购买商品
	Map<String,Object> buyOrder(String username,String gno,String addrid,int count,String desc);
	
	//订单列表
	List<OrderVO> listOrder(String username);
	
	//取消订单
	Map<String,Object> cancelOrder(String username,String ono);
	
	//支付金额
	Map<String,Object> payForOrder(String username,String ono);
}


